var fs = require('fs');
module.exports = {
    writeFile(filePath, data, insertType = 'before') {
        var str = (fs.readFileSync(filePath)).toString();
        fs.writeFileSync(filePath, insertType === 'before' ? data + str : str + data);
    }
}
